package com.wj.crm.controller;

import com.wj.crm.base.BaseController;
import com.wj.crm.query.OrderDetailsQuery;
import com.wj.crm.service.OrderDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * @author WangJin
 * @version 1.0
 * @date 2022/1/24 20:01
 */
@Controller
@RequestMapping("order_details")
public class OrderDetailsController extends BaseController {
    @Autowired
    private OrderDetailsService orderDetailsService;


    @RequestMapping("list")
    @ResponseBody
    public Map<String,Object> queryOrderDetailsByParams(OrderDetailsQuery orderDetailsQuery){

        return orderDetailsService.queryOrderDetailsByParams(orderDetailsQuery);
    }


    @RequestMapping("toOrderDetailPage")
    public String toOrderDetailPage(){

        return "customer/customer_order_detail";
    }


}
